package zy1208.zy12;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Properties;
import java.util.Set;

public class demo {
    public static void main(String[] args) throws IOException {
        Properties prop = new Properties();
        List<String> lines = FileUtils.readLines(new File("D:\\ideadashuju12\\liu_ya_kai\\src\\zy1208\\zy12\\t5.properties"));
        for (String line : lines) {
            String[] split = line.split("=");
            prop.setProperty(split[0],split[1]);
        }
        Set<String> keys = prop.stringPropertyNames();
        for (String x : keys) {
            System.out.println(x+"="+prop.getProperty(x));
        }
    }
}
